package handler;

import io.netty.channel.ChannelHandlerContext;

import java.util.ArrayDeque;
import java.util.HashMap;
import java.util.Map;

public class ContextDispatch {

  private Map<String, ChannelHandlerContext> httpContext;

  public ContextDispatch() {
      this.httpContext = new HashMap<>();
  }

  public ChannelHandlerContext getContext(String key) {
      return this.httpContext.get(key);
  }

  public void addContext(String key, ChannelHandlerContext channelHandlerContext) {
      this.httpContext.put(key, channelHandlerContext);
  }
}
